<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>文本绑定</h2>
    <ul>
        <li>v-text: 绑定标签内容。实际开发过程中，完全可以被{{}}替代</li>
        <li>v-html：绑定标签内容，但是要解析html字符串</li>
    </ul>
    <main id="app">
        <div v-text="text"></div>
        <div v-html="text"></div>
    </main>
</body>
<script src="../vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            text: "<p>我是个一p标签</p>"
        }
    })
</script>
</html>